package com.group.entity.wms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 储位
 */
@TableName("wms_position")
public class PositionEntity {
    /**
     * 储位id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 储位名称
     */
    private String positionName;
    /**
     * 储位类型
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long positionType;
    /**
     * 储位类型名称
     */
    @TableField(exist = false)
    private String positionTypeName;
    /**
     * 储位编码
     */
    private String positionNumber;
    /**
     * 创建者
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUser;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 存储数量
     */
    private BigDecimal storageCount;
    /**
     * 存储单位
     */
    private String unit;
    /**
     * 状态,0正常,1冻结
     */
    private Integer status;
    /**
     * 最大存储数量
     */
    private BigDecimal maxCount;
    /**
     * 是否控制存储数量，0不控制，1控制
     */
    private Integer isControllerCount;
    /**
     * 储位条码
     */
    private String positionBarCod;
    /**
     * 最后一次修改人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long lastUpdateUser;
    /**
     * 最后一次修改时间
     */
    private Date lastUpdateTime;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long warehouseAreaId;

    public Long getWarehouseAreaId() {
        return warehouseAreaId;
    }

    public void setWarehouseAreaId(Long warehouseAreaId) {
        this.warehouseAreaId = warehouseAreaId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Long getPositionType() {
        return positionType;
    }

    public void setPositionType(Long positionType) {
        this.positionType = positionType;
    }

    public String getPositionNumber() {
        return positionNumber;
    }

    public void setPositionNumber(String positionNumber) {
        this.positionNumber = positionNumber;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getStorageCount() {
        return storageCount;
    }

    public void setStorageCount(BigDecimal storageCount) {
        this.storageCount = storageCount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(BigDecimal maxCount) {
        this.maxCount = maxCount;
    }

    public Integer getIsControllerCount() {
        return isControllerCount;
    }

    public void setIsControllerCount(Integer isControllerCount) {
        this.isControllerCount = isControllerCount;
    }

    public String getPositionBarCod() {
        return positionBarCod;
    }

    public void setPositionBarCod(String positionBarCod) {
        this.positionBarCod = positionBarCod;
    }

    public Long getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(Long lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getPositionTypeName() {
        return positionTypeName;
    }

    public void setPositionTypeName(String positionTypeName) {
        this.positionTypeName = positionTypeName;
    }

    @Override
    public String toString() {
        return "PositionEntity{" +
                "id=" + id +
                ", positionName='" + positionName + '\'' +
                ", positionType=" + positionType +
                ", positionTypeName='" + positionTypeName + '\'' +
                ", positionNumber='" + positionNumber + '\'' +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", storageCount=" + storageCount +
                ", unit='" + unit + '\'' +
                ", status=" + status +
                ", maxCount=" + maxCount +
                ", isControllerCount=" + isControllerCount +
                ", positionBarCod='" + positionBarCod + '\'' +
                ", lastUpdateUser=" + lastUpdateUser +
                ", lastUpdateTime=" + lastUpdateTime +
                ", warehouseAreaId=" + warehouseAreaId +
                '}';
    }
}
